package com.xinguan.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 陈俊行
 * @Date: 2023/11/10/9:18
 * @Description:
 */
@Data
public class AllInformation {

    @JsonProperty("order_id")
    private String orderId;

    @JsonProperty("name")
    private String name;
    @JsonProperty("phone")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime buyTime;
    @JsonProperty("notes")
    private String notes;

    @JsonProperty("order_status")
    private String orderStatus;

//    @JsonProperty("commodity_names")
//    private String commodityNames;
    @JsonIgnore
    //@JsonProperty("items")
    private String items;

    @JsonProperty("total_amount")
    private Double totalAmount;

    private List<ItemDTO> itemsList;

    public List<ItemDTO> getItemsList() {
        return itemsList;
    }

    public void setItemsList(List<ItemDTO> itemsList) {
        this.itemsList = itemsList;
    }
}
